package family.yaongteam.connectlines;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class ConnectLines extends Activity {

	PaperView paperView;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        paperView = (PaperView)findViewById(R.id.paper_view);
        
        Button preButton = (Button)findViewById(R.id.pre);
        Button nextButton = (Button)findViewById(R.id.next);
        
        preButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				paperView.getPaperManager().goPre();
			}
		});
        
        nextButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				paperView.getPaperManager().goNext();
			}
		});
    }
}